package edu.scau.misp.backend_module.mapper;

import edu.scau.misp.backend_module.domain.Payment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PaymentMapper {

    /**
     *根据ID查询
     * @param paymentId
     * @return
     */
    public Payment getPaymentById(Long paymentId);

    /**
     *根据SN查询
     * @param paymentSn
     * @return
     */

    public Payment getPaymentBySn(Long paymentSn);

    /**
     *列出所有
     * @return
     */

    public List<Payment> listAllPayment();

    /**
     *根据payment模糊查询
     * @param payment
     * @return
     */


    public List<Payment> selectPaymentList(Payment payment);

    /**
     *增加
     * @param payment
     * @return
     */

    public int insertPayment(Payment payment);

    /**
     *修改
     * @param payment
     * @return
     */


    public int updatePayment(Payment payment);

    /**
     *删除
     * @param paymentId
     * @return
     */


    public int deletePaymentById(Long paymentId);

}
